<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>JavaScript 获取斐波那契数列第25位是多少</title>
	</head>

	<body>
		<script>
			function fbnq(n) {
				if(n == 1 || n == 2) {
					return 1;
				} else {
					return fbnq(n - 1) + fbnq(n - 2);
				}
			}
			console.log(fbnq(25));
		</script>
	</body>

</html>